<div class='comments_row'>
<?
	$num = count($thread);
	for($i=0;$i<$num;$i++):
?>
	<div><?= $thread[$i]['author_id']?> : 发表时间:<?= Util::formatTime($thread[$i]['create_time'],'Y-m-d H:i:s')?></div>
	<div><?= htmlcontent($thread[$i]['content']); ?></div>	
<?endfor;?>
<?if($this->login_uid == $thread[$i]['author_id'] || $this->login_uid == $thread[$i]['uid'] ):?>
<a href="javascript: comments.remove_comment_list(<?= $thread[$i]['thread_id']?>)">删除</a>
<?endif;?>
<a href="javascript: comments.show_reply('reply_<?= $thread[$i]['thread_id']?>')">回复</a>
<div id='reply_<?= $thread['thread_id']?>' style="display:none">
<form id='comment_reply_<?= $thread[$i]['thread_id']?>' name='comment_reply_<?= $thread[$i][0]['thread_id']?>' action="/?_app=comment&_controller=index&_action=reply_comment" method="post" >
	<input name='thread_id' type="hidden"  value=<?= $thread[$i]['thread_id']?>  ><br>
	<textarea name='content' id='content' style="width:200px;"></textarea>
	<a href="javascript: comments.reply_comment_list('comment_reply_<?= $thread[$i]['thread_id']?>')">回复</a>
	<a href="javascript: comments.hidden_reply('reply_<?= $thread[$i]['thread_id']?>')">取消</a>
</form>
</div>
</div>
<br>